package Demo9;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@PropertySource("classpath:config.properties")
public class DButil {
    @Value("${Spring.datasource.url}")
    private String url;
    @Value("${Spring.datasource.username}")
    private String username;
    @Value("${Spring.datasource.passwords}")
    private String password;



    @Override
    public String toString() {
        return "DButil{" +
                "url='" + url + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
